function choose(thisname,thisid){
  //alert(thisid);
  var i=0;
  while($(':radio[name='+thisname+']').eq(i).attr("id")){
    var theid=$(':radio[name='+thisname+']').eq(i).attr("id");
      if(theid==thisid){
        $(':radio[name='+thisname+']').eq(i).attr("checked",true);
        $("#"+theid).show();
      }
      else{
        $(':radio[name='+thisname+']').eq(i).attr("checked",false);
        $("#"+theid).hide();
      }
   
    
    i++; 
  }
  
	//$(':radio[name='+thisname+'][id='+thisid+']').attr("checked","checked");
  //alert();
}
function changechoose(thisdiv){
  var par=thisdiv.parentNode;
  par=par.parentNode;
  thisid=thisdiv.id;
  par=par.parentNode;
  partest=par.getElementsByTagName("div");

  var number=0;
  var beginnumber=0;
  for (var i = partest.length - 1; i >= 0; i--) {
    if(partest[i].id==thisid){
      beginnumber=i;
      number++;
      partest[i].style.backgroundColor="#fff";
    }
  }
  thisdiv.style.backgroundColor="red";
  //alert(number);
  //alert(beginnumber);
  var colorarray=new Array("red","#32cd32","yellow","orange");
  var thisnumber=0;
  for (var i = beginnumber;i<beginnumber+number; i++){
    if(partest[i].style.backgroundColor=="red"){
      thisnumber=i;
    }
  }
  if(thisnumber<beginnumber+4){

    thisnumber=(thisnumber+1)%4;
    if(colorarray[thisnumber]){
      thisdiv.style.backgroundColor=colorarray[thisnumber];
    }
  }
}

function displayclass(thisclass){
	var Divclass="."+thisclass;
	$(Divclass).toggle();

}

//浏览器样式
$(document).ready(function() {
    var nicesx = $(".test").niceScroll({
      touchbehavior:false,
      cursorcolor:"#0000FF",
      cursoropacitymax:0.6,
      cursorwidth:8});
    
  });